using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest.Entitys
{
    /// <summary>
    /// 商品品牌
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='商品品牌']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class GoodsBrand
    {
        /// <summary>
        /// brand_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary]
        public int BrandId { get; set; }

        /// <summary>
        /// 品牌名称
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(128) NOT NULL COMMENT '品牌名称']]>
        /// </remarks>
        [Column(128, false)]
        [DisplayName("品牌名称")]
        public string BrandName { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(64) DEFAULT NULL COMMENT '别名']]>
        /// </remarks>
        [Column(64)]
        [DisplayName("别名")]
        public string Alias { get; set; }

        /// <summary>
        /// 拼音字母
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(128) NOT NULL COMMENT '拼音字母']]>
        /// </remarks>
        [Column(128, false)]
        [DisplayName("拼音字母")]
        public string Letter { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(32) DEFAULT NULL COMMENT '图标']]>
        /// </remarks>
        [Column(32)]
        [DisplayName("图标")]
        public string BrandIcon { get; set; }

        /// <summary>
        /// 是否审核
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '是否审核']]>
        /// </remarks>
        [Column(1, false)]
        [DisplayName("是否审核")]
        public bool IsApproved { get; set; }

        /// <summary>
        /// 是否删除 ***
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '是否删除 ***']]>
        /// </remarks>
        [JsonIgnore]
        [Column(1, false)]
        [DisplayName("是否删除")]
        public bool IsDel { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '排序']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("排序")]
        public int Sort { get; set; }

    }
}
